import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex);

export default new Vuex.Store({
    // 全局状态
    state: {
        // 路由
        routes: [],
    },

    mutations: {
        // 初始化路由
        initRoutes(state, data) {
            state.routes = data;
        },
    },

    actions: {},

    modules: {},
});
